package my.mall.front.api.pojo.order

import jakarta.validation.constraints.Max
import jakarta.validation.constraints.Min
import jakarta.validation.constraints.NotEmpty
import jakarta.validation.constraints.NotNull

class OrderAddressParam {
    var username: @NotEmpty String? = null
    var phoneNum: @NotNull(message = "请输入正确电话号码") @Min(
        value = 10000000000L,
        message = "请输入正确电话号码"
    ) @Max(value = 19999999999L, message = "请输入正确电话号码") Long? = null
    var userProvince: @NotEmpty String? = null
    var userCity: @NotEmpty String? = null
    var userArea: @NotEmpty String? = null
    var userAddress: @NotEmpty String? = null
}
